package org.jeecg.modules.operations.assistant.xcbd.service;

import org.jeecg.modules.operations.assistant.xcbd.entity.XcbdCollectionRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.operations.assistant.xcbd.entity.YearCountInfo;

import java.util.List;

/**
 * @Description: 收款记录
 * @Author: jeecg-boot
 * @Date:   2024-12-21
 * @Version: V1.0
 */
public interface IXcbdCollectionRecordService extends IService<XcbdCollectionRecord> {

  /**
   * 通过主表id查询子表数据
   *
   * @param mainId
   * @return List<XcbdCollectionRecord>
   */
	public List<XcbdCollectionRecord> selectByMainId(String mainId);

    public void saveCollectionRecord(XcbdCollectionRecord collectionRecord);

    public void updateReceiptStatus(XcbdCollectionRecord collectionRecord);
    public List<YearCountInfo> getYearCountInfo();
    public List<YearCountInfo> getMonthCountInfo();
    public List<YearCountInfo> getWeekCountInfo();
}
